package com.cloud.api.domain.sys;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;

@Getter
@Setter
@Accessors(chain = true)
@Schema(name = "SystemRoleDto")
public class SystemRoleDto implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "主键")
    @TableId("role_id")
    private String roleId;

    @Schema(description = "角色名")
    @TableField("role_name")
    private String roleName;

    @Schema(description = "备注")
    @TableField("notes")
    private String notes;

    @Schema(description = "备注")
    @TableField("data_scope")
    private Integer dataScope;

    @Schema(description = "启用/禁用")
    @TableField("enable")
    private Integer enable;

    @Schema(description = "所属部门")
    private List<SysDept> sysDepts;

    @Schema(description = "所属部门名称")
    private String deptNames;

    @Schema(description = "部门id")
    private String deptIds;
}
